<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <title>志愿一点通</title>
    <link href="${ctxStatic}/bootstrap/3.3.2/css/bootstrap.min.css" type="text/css" rel="stylesheet" />
    <link rel="stylesheet" href="${ctxStatic}/app/css/master.css">
</head>
<body>
<nav class="topbar bluebg">
    <a class="icon-arrow icon-return" href="${wechat}/search"></a>
    <h1>专业查询</h1>
    <!--<a class="nav-right" href="#">收藏</a>-->
</nav>

<div class="wrap">
    <section class="majorbox">
        <div class="subject-tab">
            <ul class="clearfix">
                <li><a class="cur" href="#">本科专业</a></li>
                <li style="display: none;"><a href="#" >专科专业</a></li>
            </ul>
        </div>
        <div class="majorlist">
            <ul id="sort1" class="nav1">
                <c:forEach items="${parentMajorList}" var="item">
                    <li>
                        <a class="m1">${item.majorParentCode}-${item.majorParentName}</a>
                        <ul id="sort2" class="nav2">
                            <c:forEach items="${majorTypeList}" var="majorType">
                                <c:if test="${majorType.majorParentCode eq item.majorParentCode}">
                                    <li>
                                        <a class="m2">${majorType.majorType}-${majorType.majorTypeName}</a>
                                        <ul id="sort3" class="nav3">
                                            <c:forEach items="${majorList}" var="major">
                                                <c:if test="${major.majorParentCode eq item.majorParentCode && major.majorType eq majorType.majorType}">
                                                    <li><a href="${wechat}/majorDetail?majorCode=${major.majorCode}" class="m3">${major.majorCode}-${major.majorName}</a></li>
                                                </c:if>
                                            </c:forEach>
                                        </ul>
                                    </li>
                                </c:if>
                            </c:forEach>
                        </ul>
                    </li>
                </c:forEach>
             </ul>
        </div>
    </section>
</div>
<script src="${ctxStatic}/jquery/jquery-1.9.1.min.js" type="text/javascript"></script>
<script src="${ctxStatic}/bootstrap/3.3.2/js/bootstrap.min.js" type="text/javascript"></script>
<script src="${ctxStatic}/app/js/main.js" type="text/javascript"></script>
</body>
</html>